﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace CreateStaticHtml
{
    public partial class SiteMaster : System.Web.UI.MasterPage
    {
        public string LoginField = string.Empty;
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["user"] == null)
            {
                LoginField = "[<a href=\"/Account/Login.aspx\">登录</a>]";
            }
            else
            {
                LoginField = "欢迎你 " + Session["user"].ToString() + " [<a href=\"/Account/Logout.aspx\">注销</a>]";
            }
        }
    }
}
